import React from 'react';
import { Routes, Route, Link} from 'react-router-dom'
import User from './views/user'
import Auth from './views/auth'

function App() {
  return (
    <div className="App">
      <h1>子应用 React 项目</h1>
      <Link to='/user'>用户管理</Link>
      <span> | </span>
      <Link to='/auth'>权限管理</Link>
      <Routes>
        <Route path='/' element={<User/>} />
        <Route path='/user' element={<User/>} />
        <Route path='/auth' element={<Auth/>} />
      </Routes>
    </div>
  );
}

export default App;
